package com.geeke.wf.service;

import java.util.List;

import org.camunda.bpm.engine.rest.dto.history.HistoricTaskInstanceQueryDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.geeke.wf.dao.HistTaskDao;
import com.geeke.wf.entity.HistTask;

@Service("histTaskService")
@Transactional(readOnly = true)
public class HistTaskService {
    @Autowired
	HistTaskDao histTaskDao;

    public List<HistTask> queryHistoricTaskInstances(HistoricTaskInstanceQueryDto queryDto, int firstResult, int maxResults) {
        return histTaskDao.queryHistoricTaskInstances(queryDto, firstResult, maxResults);
    }

    public long queryHistoricTaskInstancesCount(HistoricTaskInstanceQueryDto queryDto) {
        return histTaskDao.queryHistoricTaskInstancesCount(queryDto);
    }
}
